﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Detail.Master" AutoEventWireup="true"
    CodeBehind="AccidentEdit.aspx.cs" Inherits="MTC.Web.Forms.AccidentEdit" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dxtc" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dxw" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dxp" %>
<%@ Register Src="../Controls/NavMenu.ascx" TagName="NavMenu" TagPrefix="uc1" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.ASPxHtmlEditor.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHtmlEditor" TagPrefix="dxhe" %>
<%@ Register Assembly="DevExpress.Web.ASPxSpellChecker.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxSpellChecker" TagPrefix="dxwsc" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPHeader" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPNav" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPMain" runat="server">
    <asp:HiddenField ID="hfAccidentId" runat="server" />
    <dxtc:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0" CssFilePath="~/App_Themes/Soft Orange/{0}/styles.css"
        CssPostfix="Soft_Orange" ImageFolder="~/App_Themes/Soft Orange/{0}/" OnActiveTabChanged="ASPxPageControl1_ActiveTabChanged"
        Width="600px" LoadingPanelText="" TabSpacing="2px">
        <TabPages>
            <dxtc:TabPage Text="General">
                <ContentCollection>
                    <dxw:ContentControl runat="server">
                        <dxp:ASPxPanel ID="ASPxPanel1" runat="server" Width="700px">
                            <PanelCollection>
                                <dxp:PanelContent runat="server">
                                    <table>
                                        <tr>
                                            <td>
                                                <dxe:ASPxLabel ID="lblAccidentDate" runat="server" Text="AccidentDate">
                                                </dxe:ASPxLabel>
                                            </td>
                                            <td>
                                                <telerik:RadDateTimePicker ID="dteAccidentDate" runat="server" 
                                                    Culture="English (Australia)" Width="200px">
                                                    <TimeView CellSpacing="-1" Culture="English (Australia)">
                                                    </TimeView>
                                                    <TimePopupButton CssClass="" HoverImageUrl="" ImageUrl="" />
                                                    <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" 
                                                        ViewSelectorText="x">
                                                    </Calendar>
                                                    <DateInput LabelCssClass="" Width="">
                                                    </DateInput>
                                                    <DatePopupButton CssClass="" HoverImageUrl="" ImageUrl="" />
                                                </telerik:RadDateTimePicker>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dxe:ASPxLabel ID="lblTaxi" runat="server" Text="Taxi">
                                                </dxe:ASPxLabel>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="cboVehicle" runat="server" Height="20px" Width="120px" DataValueField="TaxiId"
                                                    DataTextField="PlateNumber">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dxe:ASPxLabel ID="lblDriver" runat="server" Text="Driver">
                                                </dxe:ASPxLabel>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="cboDriver" runat="server" Height="25px" Width="234px" DataValueField="DriverId"
                                                    DataTextField="Name">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dxe:ASPxLabel ID="lblLocation" runat="server" Text="Location">
                                                </dxe:ASPxLabel>
                                            </td>
                                            <td>
                                                <dxe:ASPxTextBox ID="txtLocation" runat="server">
                                                </dxe:ASPxTextBox>
                                            </td>
                                            <td></td>
                                            <td>
                                                <dxe:ASPxLabel ID="lblFault" runat="server" Text="Fault">
                                                </dxe:ASPxLabel>                                            
                                            </td>
                                            <td>
                                                <dxe:ASPxTextBox ID="txtFault" runat="server" Width="200px"></dxe:ASPxTextBox>                                            
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dxe:ASPxLabel ID="lblCosts" runat="server" Text="Costs">
                                                </dxe:ASPxLabel>                                            
                                            </td>
                                            <td>
                                                <dxe:ASPxTextBox ID="txtCosts" runat="server"></dxe:ASPxTextBox>                                            
                                            </td>
                                            <td></td>                                            
                                             <td>
                                                <dxe:ASPxLabel ID="lblRepairLocation" runat="server" Text="Repair Location">
                                                </dxe:ASPxLabel>                                            
                                            </td>
                                            <td>
                                                <dxe:ASPxTextBox ID="txtRepairLocation" runat="server" Width="200px"></dxe:ASPxTextBox>                                            
                                            </td>
                                        </tr>

                                    </table>
                                </dxp:PanelContent>
                            </PanelCollection>
                        </dxp:ASPxPanel>
                    </dxw:ContentControl>
                </ContentCollection>
            </dxtc:TabPage>
            <dxtc:TabPage Text="Comments">
                <ContentCollection>
                    <dxw:ContentControl runat="server">
                        <table>
                            <tr>
                                <td>
                                    <dxe:ASPxLabel ID="Label1" runat="server" Text="Comments">
                                    </dxe:ASPxLabel>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <dxhe:ASPxHtmlEditor ID="txtComments" runat="server" CssFilePath="~/App_Themes/Soft Orange/{0}/styles.css"
                                        CssPostfix="Soft_Orange">
                                        <Styles CssFilePath="~/App_Themes/Soft Orange/{0}/styles.css" CssPostfix="Soft_Orange">
                                            <ViewArea>
                                                <Border BorderColor="LightGray" BorderStyle="Solid" BorderWidth="3px" />
                                            </ViewArea>
                                        </Styles>
                                        <StylesToolbars>
                                            <Toolbar SeparatorHeight="23px" SeparatorWidth="1px">
                                                <SeparatorPaddings PaddingBottom="2px" PaddingTop="0px" />
                                            </Toolbar>
                                        </StylesToolbars>
                                        <StylesRoundPanel>
                                            <ControlStyle>
                                                <Border BorderStyle="None" />
                                            </ControlStyle>
                                        </StylesRoundPanel>
                                        <Settings AllowHtmlView="False" AllowPreview="false" />
                                        <SettingsLoadingPanel Text="" />
                                        <SettingsImageUpload>
                                            <ValidationSettings AllowedContentTypes="image/jpeg, image/pjpeg, image/gif, image/png, image/x-png">
                                            </ValidationSettings>
                                        </SettingsImageUpload>
                                        <Images ImageFolder="~/App_Themes/Soft Orange/{0}/">
                                            <DialogFormCloseButton Height="18px" Width="18px" />
                                            <ToolbarPopOut Height="4px" Url="~/App_Themes/Soft Orange/HtmlEditor/tbHorizontalPopOut.png"
                                                Width="6px" />
                                        </Images>
                                        <PartsRoundPanel>
                                            <TopLeftCorner Height="9px" Url="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpTopLeftCorner.png"
                                                Width="9px" />
                                            <NoHeaderTopLeftCorner Height="9px" Url="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpNoHeaderTopLeftCorner.png"
                                                Width="9px" />
                                            <TopRightCorner Height="9px" Url="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpTopRightCorner.png"
                                                Width="9px" />
                                            <NoHeaderTopRightCorner Height="9px" Url="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpNoHeaderTopRightCorner.png"
                                                Width="9px" />
                                            <BottomRightCorner Height="9px" Url="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpBottomRightCorner.png"
                                                Width="9px" />
                                            <BottomLeftCorner Height="9px" Url="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpBottomLeftCorner.png"
                                                Width="9px" />
                                            <HeaderLeftEdge>
                                                <BackgroundImage ImageUrl="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpHeaderLeftEdge.gif"
                                                    Repeat="NoRepeat" VerticalPosition="bottom" />
                                            </HeaderLeftEdge>
                                            <HeaderContent>
                                                <BackgroundImage ImageUrl="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpHeaderBack.gif"
                                                    Repeat="RepeatX" VerticalPosition="bottom" />
                                            </HeaderContent>
                                            <HeaderRightEdge>
                                                <BackgroundImage ImageUrl="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpHeaderRightEdge.gif"
                                                    Repeat="NoRepeat" VerticalPosition="bottom" />
                                            </HeaderRightEdge>
                                            <NoHeaderTopEdge BackColor="White">
                                                <BackgroundImage ImageUrl="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpNoHeaderTopEdge.gif" />
                                            </NoHeaderTopEdge>
                                            <TopEdge BackColor="White">
                                                <BackgroundImage ImageUrl="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpTopEdge.gif" />
                                            </TopEdge>
                                            <RightEdge BackColor="White">
                                                <BackgroundImage HorizontalPosition="right" ImageUrl="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpRightEdge.gif"
                                                    Repeat="RepeatY" />
                                            </RightEdge>
                                            <BottomEdge BackColor="White">
                                                <BackgroundImage ImageUrl="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpBottomEdge.gif"
                                                    Repeat="RepeatX" VerticalPosition="bottom" />
                                            </BottomEdge>
                                            <LeftEdge BackColor="White">
                                                <BackgroundImage HorizontalPosition="left" ImageUrl="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpLeftEdge.gif"
                                                    Repeat="RepeatY" />
                                            </LeftEdge>
                                            <Content BackColor="White">
                                            </Content>
                                        </PartsRoundPanel>
                                    </dxhe:ASPxHtmlEditor>
                                </td>
                            </tr>
                        </table>
                    </dxw:ContentControl>
                </ContentCollection>
            </dxtc:TabPage>
            <dxtc:TabPage Text="Damages">
                <ContentCollection>
                    <dxw:ContentControl runat="server">
                        <dxhe:ASPxHtmlEditor ID="txtDamages" runat="server" CssFilePath="~/App_Themes/Soft Orange/{0}/styles.css"
                            CssPostfix="Soft_Orange">
                            <Styles CssFilePath="~/App_Themes/Soft Orange/{0}/styles.css" CssPostfix="Soft_Orange">
                                <ViewArea>
                                    <Border BorderColor="LightGray" BorderStyle="Solid" BorderWidth="3px" />
                                </ViewArea>
                            </Styles>
                            <StylesToolbars>
                                <Toolbar SeparatorHeight="23px" SeparatorWidth="1px">
                                    <SeparatorPaddings PaddingBottom="2px" PaddingTop="0px" />
                                </Toolbar>
                            </StylesToolbars>
                            <StylesRoundPanel>
                                <ControlStyle>
                                    <Border BorderStyle="None" />
                                </ControlStyle>
                            </StylesRoundPanel>
                            <SettingsLoadingPanel Text="" />
                            <Settings AllowHtmlView="False" AllowPreview="false" />
                            <SettingsImageUpload>
                                <ValidationSettings AllowedContentTypes="image/jpeg, image/pjpeg, image/gif, image/png, image/x-png">
                                </ValidationSettings>
                            </SettingsImageUpload>
                            <Images ImageFolder="~/App_Themes/Soft Orange/{0}/">
                                <DialogFormCloseButton Height="18px" Width="18px" />
                                <ToolbarPopOut Height="4px" Url="~/App_Themes/Soft Orange/HtmlEditor/tbHorizontalPopOut.png"
                                    Width="6px" />
                            </Images>
                            <PartsRoundPanel>
                                <TopLeftCorner Height="9px" Url="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpTopLeftCorner.png"
                                    Width="9px" />
                                <NoHeaderTopLeftCorner Height="9px" Url="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpNoHeaderTopLeftCorner.png"
                                    Width="9px" />
                                <TopRightCorner Height="9px" Url="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpTopRightCorner.png"
                                    Width="9px" />
                                <NoHeaderTopRightCorner Height="9px" Url="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpNoHeaderTopRightCorner.png"
                                    Width="9px" />
                                <BottomRightCorner Height="9px" Url="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpBottomRightCorner.png"
                                    Width="9px" />
                                <BottomLeftCorner Height="9px" Url="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpBottomLeftCorner.png"
                                    Width="9px" />
                                <HeaderLeftEdge>
                                    <BackgroundImage ImageUrl="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpHeaderLeftEdge.gif"
                                        Repeat="NoRepeat" VerticalPosition="bottom" />
                                </HeaderLeftEdge>
                                <HeaderContent>
                                    <BackgroundImage ImageUrl="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpHeaderBack.gif"
                                        Repeat="RepeatX" VerticalPosition="bottom" />
                                </HeaderContent>
                                <HeaderRightEdge>
                                    <BackgroundImage ImageUrl="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpHeaderRightEdge.gif"
                                        Repeat="NoRepeat" VerticalPosition="bottom" />
                                </HeaderRightEdge>
                                <NoHeaderTopEdge BackColor="White">
                                    <BackgroundImage ImageUrl="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpNoHeaderTopEdge.gif" />
                                </NoHeaderTopEdge>
                                <TopEdge BackColor="White">
                                    <BackgroundImage ImageUrl="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpTopEdge.gif" />
                                </TopEdge>
                                <RightEdge BackColor="White">
                                    <BackgroundImage HorizontalPosition="right" ImageUrl="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpRightEdge.gif"
                                        Repeat="RepeatY" />
                                </RightEdge>
                                <BottomEdge BackColor="White">
                                    <BackgroundImage ImageUrl="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpBottomEdge.gif"
                                        Repeat="RepeatX" VerticalPosition="bottom" />
                                </BottomEdge>
                                <LeftEdge BackColor="White">
                                    <BackgroundImage HorizontalPosition="left" ImageUrl="~/App_Themes/Soft Orange/HtmlEditor/RoundPanel/herpLeftEdge.gif"
                                        Repeat="RepeatY" />
                                </LeftEdge>
                                <Content BackColor="White">
                                </Content>
                            </PartsRoundPanel>
                        </dxhe:ASPxHtmlEditor>
                    </dxw:ContentControl>
                </ContentCollection>
            </dxtc:TabPage>
        </TabPages>
        <ContentStyle>
            <Border BorderColor="LightGray" BorderStyle="Solid" BorderWidth="3px" />
        </ContentStyle>
        <Paddings Padding="4px" />
    </dxtc:ASPxPageControl>
    <table width="600px">
        <tr>
            <td>
                &nbsp;<dxe:ASPxLabel ID="lblMessage" runat="server" ForeColor="red">
                </dxe:ASPxLabel>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Button ID="btnUpdate" runat="server" Text="Update" OnClick="btnUpdate_Click" />&nbsp;<asp:Button
                    ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="CPSideBar" runat="server">
    <uc1:NavMenu ID="NavMenu1" runat="server" />
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="CPFooter" runat="server">
</asp:Content>
